package com.leo.manage_system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物品表
 * </p>
 *
 * @author ${author}
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Res对象", description="物品表")
public class Res implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "物品类型")
    private Integer resType;

    @ApiModelProperty(value = "物品名称")
    private String name;

    @ApiModelProperty(value = "物品描述")
    private String description;

    @ApiModelProperty(value = "图片链接")
    private String picture;

    @ApiModelProperty(value = "发现位置")
    private String location;

    @ApiModelProperty(value = "发现时间", example = "2019-01-01 8:00:00")
    private Date findTime;

    @ApiModelProperty(value = "创建时间", example = "2019-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间", example = "2019-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModify;

    @TableLogic
    private Integer isDeleted;

    private Integer version;


}
